package nl.leiden;

import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.graphics.Canvas;
import nl.leiden.activities.ContactsActivity;

public class HandyTextingActivity extends Activity {

	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Intent myIntent = new Intent(this, ContactsActivity.class);
        this.startActivity(myIntent);
        
        //--shared preferences
        /** RESOURCE
         * - very helpful post on stackoverflow about using the shared preferences a data resource
         * -> http://stackoverflow.com/questions/2614719/how-do-i-get-the-sharedpreferences-from-a-preferenceactivity-in-android
         */
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
        SharedPreferences.Editor editor = preferences.edit();
        editor.putString("sMessage", "");
        editor.commit();
    }
 
}


/**
 * TODO
 * - make user setting for sensitivity of writingActivity prediction score
 *
 */